package com.yixin.hospital.entity.dto.req.purchaseorder;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("调库请求体")
@Data
public class GoDownExchangeDrugReqDTO {

    @ApiModelProperty("调出库房")
    @NotNull(message = "调出库房id不能为空")
    private Long outputDepositoryId;

    @ApiModelProperty("调入库房")
    @NotNull(message = "调入库房id不能为空")
    private Long inputDepositoryId;

    @ApiModelProperty("来源")
    @NotBlank(message = "来源不能为空")
    private String source;

    @ApiModelProperty("药品列表")
    @NotNull(message = "药品列表不能为空")
    List<GoDownDrugBO> goDownDrugBOList;

    @Data
    public static class GoDownDrugBO{

        @ApiModelProperty("入库原库存")
        private Integer inputSourceNum;

        @ApiModelProperty("出库原库存")
        private Integer outputSourceNum;

        @ApiModelProperty("出库 库存表id")
        private Long outputDrugDepositoryDrugId;

        @ApiModelProperty("入库 库存表id")
        private Long inputDrugDepositoryDrugId;

        @ApiModelProperty("入库数量")
        private Integer num;


    }
}
